home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 3707 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  2.0 KB

  1. Path: stc06.ctd.ornl.gov!mbk
  2. From: mbk@jt3ws1.etd.ornl.gov (Kennel)
  3. Newsgroups: comp.lang.ada,comp.lang.c++,comp.lang.c,comp.lang.modula3,comp.lang.modula2,comp.lang.eiffel
  4. Subject: Re: Hungarian notation
  5. Followup-To: comp.lang.misc
  6. Date: 25 Jan 1996 17:59:10 GMT
  7. Organization: Oak Ridge National Lab, Oak Ridge, TN
  8. Message-ID: <4e8gde$57n@stc06.ctd.ornl.gov>
  9. References: <30C40F77.53B5@swsbbs.com> <4d2ok0$69s@beach.and.nl> <4dtv3gINNo9u@keats.ugrad.cs.ubc.ca> <SPENCER.96Jan22113215@zorgon.ERA.COM> <4e1nd8$hv0@solutions.solon.com> <3104bfc8.132251392@nntp.ix.netcom.com> <dewar.822407919@schonberg>
  10. Reply-To: kennel@msr.epm.ornl.gov
  11. NNTP-Posting-Host: jt3ws1.etd.ornl.gov
  12. X-Newsreader: TIN [version 1.2 PL2]
  13.  
  14. Robert Dewar (dewar@cs.nyu.edu) wrote:
  15. > Michael says (talking about overflow in C)
  16.  
  17. > "An implementation must handle this and must document how it does so."
  18.  
  19. > Yes, of course the documentation may say that the result is to delete
  20. > your system disk. Even if a more reasonable behavior is described, any
  21. > program relying on such an implementation dependent feature is of
  22. > course compromising its portability. One of the troubles with C is
  23. > that it is oh-so-easy to introduce implementation dependence.
  24.  
  25. > It is interesting to note that a number of "bug" reports sent into gcc
  26. > are complaints that GCC does not duplicate some implementation
  27. > dependent behavior seen in some other compiler.
  28.  
  29. This is typically taken as a fault in the people submitting the bug reports.
  30.  
  31. I do not.  I'm sympathetic to 'ordinary' people, and harsh on computers and 
  32. their designers. 
  33.  
  34. So like Mr. Dewar, I see this as empirical evidence that C (and some ways 
  35. C++) permit and encourage far too much implementation dependence.  Really,
  36. this *IS* a fault in the language design.  Just documenting it and saying
  37. "you're a bad dog for doing X Y and Z" does not fix the real source of the
  38. problem. 
  39.  
  40. For C it was reasonably justified given the circumstances and age. 
  41.  
  42. For a modern object-oriented applications development it's inexcusable. 
  43.  
  44.